package com.zx.cs.domain;


import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zx.common.annotation.Excel;
import com.zx.common.core.domain.BaseEntity;

/**
 * --- 平安喜乐 ---
 *
 * @author LiuGuowei
 * @date 2025/9/2
 * @desc 库存对象 inventory
 */
public class Inventory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 库存ID
     */
    private Long id;

    /**
     * 物品名称
     */
    @Excel(name = "物品名称")
    private String itemName;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String specification;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long quantity;

    /**
     * 最低库存量
     */
    @Excel(name = "最低库存量")
    private Long minQuantity;

    /**
     * 存放位置
     */
    @Excel(name = "存放位置")
    private String location;

    /**
     * 最后补货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastReplenishTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemName() {
        return itemName;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getSpecification() {
        return specification;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setMinQuantity(Long minQuantity) {
        this.minQuantity = minQuantity;
    }

    public Long getMinQuantity() {
        return minQuantity;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setLastReplenishTime(Date lastReplenishTime) {
        this.lastReplenishTime = lastReplenishTime;
    }

    public Date getLastReplenishTime() {
        return lastReplenishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("itemName", getItemName())
                .append("specification", getSpecification())
                .append("unit", getUnit())
                .append("quantity", getQuantity())
                .append("minQuantity", getMinQuantity())
                .append("location", getLocation())
                .append("lastReplenishTime", getLastReplenishTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
